package cn.xyhelp.shop.user.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户购物车
 * </p>
 *
 * @author violetfreesia
 * @since 2022-02-15
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("shopping_cart")
public class ShoppingCart extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("sku_id")
    private Integer skuId;

    /**
     * 库存单元名称
     */
    @TableField("sku_name")
    private String skuName;

    /**
     * 数量
     */
    @TableField("quantity")
    private Integer quantity;

    /**
     * 单价
     */
    @TableField("unit_price")
    private Long unitPrice;

    /**
     * 销售单元图片地址
     */
    @TableField("sale_unit_img_url")
    private String saleUnitImgUrl;

    @TableField("goods_id")
    private Integer goodsId;

    @TableField("user_id")
    private Integer userId;

    @TableField("store_id")
    private Integer storeId;


}
